Use non-deprecated chown syntax
authorChris Hofstaedtler <zeha@debian.org>
Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)
committerChris Hofstaedtler <zeha@debian.org>
Thu, 4 Aug 2022 16:18:17 +0000 (17:18 +0100)
Closes: #1007139
Gbp-Pq: Topic debian
Gbp-Pq: Name chown-non-deprecated.patch

tests/functions.sh

index 56b55a2abacaaa2aa238d0139e615d240b7f623f..fa2ba5ed8a7bbbe4236cbeb22255622aa036a1b9 100644 (file)
@@ -440,7 +440,7 @@ function ts_init_suid {
        TS_SUID_USER[$ct]=$(stat --printf="%U" $PROG)
        TS_SUID_GROUP[$ct]=$(stat --printf="%G" $PROG)
 
-       chown root.root $PROG &> /dev/null
+       chown root:root $PROG &> /dev/null
        chmod u+s $PROG &> /dev/null
 }
 
@@ -629,7 +629,7 @@ function ts_cleanup_on_exit {
        for idx in $(seq 0 $((${#TS_SUID_PROGS[*]} - 1))); do
                PROG=${TS_SUID_PROGS[$idx]}
                chmod a-s $PROG &> /dev/null
-               chown ${TS_SUID_USER[$idx]}.${TS_SUID_GROUP[$idx]} $PROG &> /dev/null
+               chown ${TS_SUID_USER[$idx]}:${TS_SUID_GROUP[$idx]} $PROG &> /dev/null
        done
 
        for dev in "${TS_LOOP_DEVS[@]}"; do